<template>
  <main><Main /></main>
  <footer>
    <p>广东海洋大学 - 数学与计算机学院 - 问卷填写</p>
    <a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备2021157145号-1</a>
  </footer>
</template>

<script>
import Main from './views/Main.vue'

export default {
  components: { Main },
}
</script>

<style lang="scss">
$scrollbar-width: 10px;
$scrollbar-padding: 3px;
$scrollbar-color: #c3c2c2;
*::-webkit-scrollbar {
  background-color: transparent;
  width: $scrollbar-width;
  height: $scrollbar-width;
}
*::-webkit-scrollbar-thumb {
  background-color: transparent;
  box-shadow: inset 0 0 $scrollbar-width $scrollbar-width $scrollbar-color;
  border: solid $scrollbar-padding transparent;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
li {
  list-style: none;
}
:root {
  --bg: linear-gradient(#d1e2ea 0, #dfeaee 100%);
  --radius: 8px;
}

#app {
  width: 100%;
  padding: 20px 10px;
  min-height: 100vh;
  background-color: #f2f2f2;
  background-image: var(--bg);
  height: 100vh;
  overflow: auto;

  > main {
    margin: 0 auto;
    padding: 76px;
    max-width: 800px;

    overflow: hidden;

    background: #fff;
    position: relative;
    border-radius: var(--radius);
    transition: 0.3s padding;
  }

  > footer {
    margin-top: 10px;
    text-align: center;
    line-height: 40px;
  }
}

// 手机端
@media only screen and (max-width: 760px) {
  #app {
    min-width: 100vw;
    > main {
      padding: 36px;
    }
  }
}
</style>
